<%--
  @author Tharanga Punchihewa
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script type="text/javascript ">
    $(document).ready(function() {
        $('.organization-list').dataTable({
            "sPaginationType": "full_numbers",
            "bDestroy": true,
            "oLanguage": {
                "sZeroRecords": $('#no-record').val(),
                "sLengthMenu": $('#display').val() + " _MENU_ " + $('#records').val(),
                "sSearch": $('#search').val(),
                "sInfo": $('#showing').val() + " _START_ " + $('#to').val() + " _END_ " + $('#of').val() + " _TOTAL_ " + $('#entries').val(),
                "sInfoEmpty": $('#no-record').val(),
                "oPaginate": {
                    "sFirst": $('#first').val(),
                    "sLast": $('#last').val(),
                    "sNext": $('#next').val(),
                    "sPrevious": $('#previous').val()
                }
            }
        });
    });
</script>

<div id="land-registration-module-home-title" class="module-home-title">
    <s:a href="landInterests.do"><img src="${pageContext.request.contextPath}/images/land-reg.png"
                                             alt="Land Registration"><span><s:label
            value="Land Interests"/></span></s:a>
</div>

<s:if test="organizationsList .size()>0">
    <table class="width-100 margin-10-auto table organization-list">
        <thead>
        <tr class="center-align table-header">
            <th class="width-450-px"><s:label value="%{getText('organization_name.label')}"/></th>


        </tr>
        </thead>
        <tbody>
        <s:iterator status="status1" value="organizationsList">
            <tr>
                <td class="center-align">
                    <s:if test="language=='si'">
                        <s:property value="organizationNameSi"/>
                    </s:if> <s:elseif test="language=='en'">
                    <s:property value="organizationNameEn"/>
                </s:elseif><s:elseif test="language=='ta'">
                    <s:property value="organizationNameTa"/>
                </s:elseif>
                </td>


            </tr>
        </s:iterator>
        </tbody>
    </table>
</s:if>
<s:include value="../../dataTableLocalizationLabels.jsp"/>
